package com.nipun.neural.objects.neurons;

public class TanHNeuron extends BaseNeuronImpl {

	public TanHNeuron(String label) {
		super(label);
	}

	@Override
	public double actFunction(double input) {
		return Math.tanh(input);
	}

	@Override
	public void fire(double input) {
		setActivation(actFunction(input));
	}

	@Override
	public double getDerivative() {
		System.out.println("this function has not been fully implemented yet");
		return 0;
	}

}
